package com.gem.day12.homework;

import java.util.ArrayList;

public class User {
	private String uname;
	private String pwd;
	private double money;
	private ArrayList<Order> orders;

	public User(String uname, String pwd) {
		super();
		this.uname = uname;
		this.pwd = pwd;
		this.money = 1000;
		orders = new ArrayList<Order>();
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public ArrayList<Order> getOrders() {
		return orders;
	}

	public void setOrders(ArrayList<Order> orders) {
		this.orders = orders;
	}

	@Override
	public String toString() {
		return "User [uname=" + uname + ", pwd=" + pwd + ", money=" + money + "]";
	}
}
